package com.su.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value = "/bg")
public class MVController {

	@RequestMapping(value = "/index.do")
	public ModelAndView index(String code){
		ModelAndView mv=new ModelAndView("index");
		mv.addObject("code",code);
		return mv;
	}
	
	@RequestMapping(value = "/menu.do")
	public ModelAndView menu(){
		ModelAndView mv=new ModelAndView("menu");
		return mv;
	}
	
	@RequestMapping(value = "/menu_edit.do")
	public ModelAndView menu_edit(String flag,String code,String action){
		ModelAndView mv=new ModelAndView("menu_edit");
		mv.addObject("flag",flag);
		mv.addObject("code",code);
		mv.addObject("action",action);
		return mv;
	}
	
	@RequestMapping(value = "/user.do")
	public ModelAndView user(){
		ModelAndView mv=new ModelAndView("user");
		return mv;
	}
	
	@RequestMapping(value = "/user_edit.do")
	public ModelAndView user_edit(String action,String userId){
		ModelAndView mv=new ModelAndView("user_edit");
		mv.addObject("action",action);
		mv.addObject("userId",userId);
		return mv;
	}
	
	@RequestMapping(value = "/login.do")
	public ModelAndView login(){
		ModelAndView mv=new ModelAndView("login");
		return mv;
	}
	
	@RequestMapping(value = "/item_category.do")
	public ModelAndView item_category(){
		ModelAndView mv=new ModelAndView("item_category");
		return mv;
	}
	
	@RequestMapping(value = "/item.do")
	public ModelAndView item(){
		ModelAndView mv=new ModelAndView("item");
		return mv;
	}
	
	@RequestMapping(value = "/item_edit.do")
	public ModelAndView item_edit(String action,String code,String show){
		ModelAndView mv=new ModelAndView("item_edit");
		mv.addObject("action",action);
		mv.addObject("show",show);
		mv.addObject("code",code);
		return mv;
	}
	
	@RequestMapping(value = "/test.do")
	public ModelAndView test(String action){
		ModelAndView mv=new ModelAndView("test");
		return mv;
	}
	
	@RequestMapping(value = "/item_review.do")
	public ModelAndView item_review(){
		ModelAndView mv=new ModelAndView("item_review");
		return mv;
	}
	
	@RequestMapping(value = "/item_release.do")
	public ModelAndView item_release(){
		ModelAndView mv=new ModelAndView("item_release");
		return mv;
	}
	
	@RequestMapping(value = "/item_stop.do")
	public ModelAndView item_stop(){
		ModelAndView mv=new ModelAndView("item_stop");
		return mv;
	}
	
	@RequestMapping(value = "/item_application.do")
	public ModelAndView item_application(){
		ModelAndView mv=new ModelAndView("item_application");
		return mv;
	}
	
	@RequestMapping(value = "/item_application_view.do")
	public ModelAndView item_application_view(String code){
		ModelAndView mv=new ModelAndView("item_application_view");
		mv.addObject("code",code);
		return mv;
	}
	
	@RequestMapping(value = "/dynamic.do")
	public ModelAndView dynamic(){
		ModelAndView mv=new ModelAndView("dynamic");
		return mv;
	}
	
	@RequestMapping(value = "/dynamic_edit.do")
	public ModelAndView dynamic_edit(String action,String code,String show){	
		ModelAndView mv=new ModelAndView("dynamic_edit");
		mv.addObject("action",action);
		mv.addObject("code",code);
		mv.addObject("show",show);
		return mv;
	}
	
	@RequestMapping(value = "/dynamic_review.do")
	public ModelAndView dynamic_review(){
		ModelAndView mv=new ModelAndView("dynamic_review");
		return mv;
	}
	
	@RequestMapping(value = "/dynamic_release.do")
	public ModelAndView dynamic_release(){
		ModelAndView mv=new ModelAndView("dynamic_release");
		return mv;
	}
	
	@RequestMapping(value = "/dynamic_stop.do")
	public ModelAndView dynamic_stop(){
		ModelAndView mv=new ModelAndView("dynamic_stop");
		return mv;
	}
	
	@RequestMapping(value = "/home.do")
	public ModelAndView home(){
		ModelAndView mv=new ModelAndView("home");
		return mv;
	}
	
	@RequestMapping(value = "/dept_introduce.do")
	public ModelAndView dept_introduce(){
		ModelAndView mv=new ModelAndView("dept_introduce");
		return mv;
	}
	
	@RequestMapping(value = "/dept_introduce_edit.do")
	public ModelAndView dept_introduce_edit(String action,String code){
		ModelAndView mv=new ModelAndView("dept_introduce_edit");
		mv.addObject("action",action);
		mv.addObject("code",code);
		return mv;
	}
	
}
